import React, { memo, useEffect } from 'react';
// import {useSelector} from "react-redux";
import {DetailWrapper} from "@/views/detail/style";
import DetailPicture from "@/views/detail/c-cpns/detail-pictures";
import { changeHeaderConfigAction } from '@/store/modules/main'
import { useDispatch } from 'react-redux'

const Detail = memo(() => {
  const dispatch = useDispatch();
  useEffect(() => {
    dispatch(changeHeaderConfigAction({isFixed: false,isHome:false}))
  }, [dispatch]);


    return (
        <DetailWrapper>
            <DetailPicture></DetailPicture>
        </DetailWrapper>
    );
});

export default Detail;
